<?php
class Web_View_Helper_CommerceServices
	extends Zend_View_Helper_Abstract 
{
	
	public function commerceServices( $negocio ) 
	{
		$services = array();
		
		
		if ($negocio->delivery){
			
			$services[] = $this->view->translate('delivery');
			
		} 
		
		if ($negocio->pickup){
			
			$services[] = $this->view->translate('pickup');
			
		} 
		
		$text = implode(' ' . $this->view->translate('and') . ' ', $services);
		
		return "<p class='services'>" . $this->view->translate('services') . ": <span>{$text}</span></p>";
	}

}